﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OpenWaves.ActivityFeed.Web.Tests.Samples
{
    public partial class SampleDescription : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void Page_Init()
        {
            if (messageTemplate != null)
            {
                messageTemplate.InstantiateIn(this.plhContent);
            }
        }

        private ITemplate messageTemplate = null;

        [TemplateContainer(typeof(SampleDescription))]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate MessageTemplate
        {
            get
            {
                return messageTemplate;
            }
            set
            {
                messageTemplate = value;
            }
        }
    }
}